package edu.sctu.practice.class02.renzhaoxu.test10;

/**
 * Created by Administrator on 2015/10/21.
 */
public class Addition {

    public Addition() {

    }

    void  add(int a, int b) {

        int sum = a + b;
        System.out.println("和" + sum);
    }



    void add(long a, long b) {

        long sum = a + b;
        System.out.println("和" + sum);
    }

    void add(float a, float b) {

        float sum = a + b;
        System.out.println("和" + sum);
    }

    void add(double a, double b) {

        double sum = a + b;
        System.out.println("和" + sum);


    }

    void add(String a, String b) {

        String sum = a + b;
        System.out.println("和" + sum);
    }


    public static void main(String[] args) {
        Addition addition = new Addition();

        addition.add(4,2);



    }

}
